package cn.wolfcode.rbac.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class QueryObject {
    private int currentPage=1;
    private int pageSize=5;

    public int getStart(){
        return (currentPage-1)*pageSize;
    }
}
